@extends('layouts.default')
@section('title','重置密码')

@section('content')
  <div class="offset-md-2 col-md-8">
    <div class="card p-3">
      <div class="card-header">
          <h5>重置密码</h5>
      </div>
      <div class="card-body">
          @if(session('status'))
            <div class="alert alert-success">
                {{session('status')}}
            </div>
           @endif
      </div>
      <form action="{{route('password.email')}}" method="POST">
        {{csrf_field()}}
        <div class="mb-3 {{$errors->has('email') ? ' has-error ' : ''}}">
          <label for="email" class="form-control-label">邮箱地址:</label>
          <input type="email" id="email" name="email" class="form-control" value="{{old('email')}}" required/>
          @if($errors->has('email'))
            <span class="form-text">
                <strong>{{$errors->first('email')}}</strong>
            </span>
          @endif
        </div>
        <div class="mb-3 text-center">
          <button class="btn btn-primary">
              发送密码重置邮件
          </button>
        </div>
      </form>
    </div>
  </div>
@stop
